<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>aws-crt-cpp: Aws::Crt::Http Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">aws-crt-cpp
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceAws.html">Aws</a></li><li class="navelem"><a class="el" href="namespaceAws_1_1Crt.html">Crt</a></li><li class="navelem"><a class="el" href="namespaceAws_1_1Crt_1_1Http.html">Http</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">Aws::Crt::Http Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAws_1_1Crt_1_1Http_1_1ClientStreamCallbackData.html">ClientStreamCallbackData</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAws_1_1Crt_1_1Http_1_1ConnectionCallbackData.html">ConnectionCallbackData</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAws_1_1Crt_1_1Http_1_1ConnectionManagerCallbackArgs.html">ConnectionManagerCallbackArgs</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientConnection.html">HttpClientConnection</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientConnectionManager.html">HttpClientConnectionManager</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientConnectionManagerOptions.html">HttpClientConnectionManagerOptions</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientConnectionOptions.html">HttpClientConnectionOptions</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientConnectionProxyOptions.html">HttpClientConnectionProxyOptions</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientStream.html">HttpClientStream</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpMessage.html">HttpMessage</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpRequest.html">HttpRequest</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAws_1_1Crt_1_1Http_1_1HttpRequestOptions.html">HttpRequestOptions</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpResponse.html">HttpResponse</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1ManagedConnection.html">ManagedConnection</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Http_1_1UnmanagedConnection.html">UnmanagedConnection</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a06495cd28f64029ef3dbd3b831d7b932"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceAws_1_1Crt_1_1Http.html#a06495cd28f64029ef3dbd3b831d7b932">HttpHeader</a> = aws_http_header</td></tr>
<tr class="separator:a06495cd28f64029ef3dbd3b831d7b932"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf7cbfe9deb17e6abd259b1db3850c6d"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceAws_1_1Crt_1_1Http.html#abf7cbfe9deb17e6abd259b1db3850c6d">OnConnectionSetup</a> = std::function&lt; void(const std::shared_ptr&lt; <a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientConnection.html">HttpClientConnection</a> &gt; &amp;connection, int errorCode)&gt;</td></tr>
<tr class="separator:abf7cbfe9deb17e6abd259b1db3850c6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38b7bf171ad1910c2d8d95eef6f8ee13"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceAws_1_1Crt_1_1Http.html#a38b7bf171ad1910c2d8d95eef6f8ee13">OnConnectionShutdown</a> = std::function&lt; void(<a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientConnection.html">HttpClientConnection</a> &amp;connection, int errorCode)&gt;</td></tr>
<tr class="separator:a38b7bf171ad1910c2d8d95eef6f8ee13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2a1bca19494ff57966accc70a833834"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceAws_1_1Crt_1_1Http.html#ab2a1bca19494ff57966accc70a833834">OnIncomingHeaders</a> = std::function&lt; void(<a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a> &amp;stream, enum aws_http_header_block headerBlock, const <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#a06495cd28f64029ef3dbd3b831d7b932">HttpHeader</a> *headersArray, std::size_t headersCount)&gt;</td></tr>
<tr class="separator:ab2a1bca19494ff57966accc70a833834"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d646e4c6ffcdfa23c42e95403ac388d"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceAws_1_1Crt_1_1Http.html#a8d646e4c6ffcdfa23c42e95403ac388d">OnIncomingHeadersBlockDone</a> = std::function&lt; void(<a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a> &amp;stream, enum aws_http_header_block block)&gt;</td></tr>
<tr class="separator:a8d646e4c6ffcdfa23c42e95403ac388d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc77003769a91c513b54ce1fa42d1231"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceAws_1_1Crt_1_1Http.html#abc77003769a91c513b54ce1fa42d1231">OnIncomingBody</a> = std::function&lt; void(<a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a> &amp;stream, const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;data)&gt;</td></tr>
<tr class="separator:abc77003769a91c513b54ce1fa42d1231"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a486282cdd28a7f05e50e1534797c4a3f"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceAws_1_1Crt_1_1Http.html#a486282cdd28a7f05e50e1534797c4a3f">OnStreamComplete</a> = std::function&lt; void(<a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a> &amp;stream, int errorCode)&gt;</td></tr>
<tr class="separator:a486282cdd28a7f05e50e1534797c4a3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf17b6f7768fa03af126b8c812ef9bd1"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceAws_1_1Crt_1_1Http.html#abf17b6f7768fa03af126b8c812ef9bd1">OnClientConnectionAvailable</a> = std::function&lt; void(std::shared_ptr&lt; <a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientConnection.html">HttpClientConnection</a> &gt;, int errorCode)&gt;</td></tr>
<tr class="separator:abf17b6f7768fa03af126b8c812ef9bd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:af3cef7161b636a6450f5cb4a50021979"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceAws_1_1Crt_1_1Http.html#af3cef7161b636a6450f5cb4a50021979">AwsHttpProxyAuthenticationType</a> { <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#af3cef7161b636a6450f5cb4a50021979a6adf97f83acf6453d4a6a4b1070f3754">AwsHttpProxyAuthenticationType::None</a> = AWS_HPAT_NONE, 
<a class="el" href="namespaceAws_1_1Crt_1_1Http.html#af3cef7161b636a6450f5cb4a50021979a972e73b7a882d0802a4e3a16946a2f94">AwsHttpProxyAuthenticationType::Basic</a> = AWS_HPAT_BASIC
 }</td></tr>
<tr class="separator:af3cef7161b636a6450f5cb4a50021979"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afba23b4ec95a8d1b95d18b2ffe5d82e5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceAws_1_1Crt_1_1Http.html#afba23b4ec95a8d1b95d18b2ffe5d82e5">HttpVersion</a> { <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#afba23b4ec95a8d1b95d18b2ffe5d82e5a88183b946cc5f0e8c96b2e66e1c74a7e">HttpVersion::Unknown</a> = AWS_HTTP_VERSION_UNKNOWN, 
<a class="el" href="namespaceAws_1_1Crt_1_1Http.html#afba23b4ec95a8d1b95d18b2ffe5d82e5aa820a7cca3410e94af1e51058023680a">HttpVersion::Http1_0</a> = AWS_HTTP_VERSION_1_0, 
<a class="el" href="namespaceAws_1_1Crt_1_1Http.html#afba23b4ec95a8d1b95d18b2ffe5d82e5a2c494112f4c9bef921aacd3650fd34ea">HttpVersion::Http1_1</a> = AWS_HTTP_VERSION_1_1, 
<a class="el" href="namespaceAws_1_1Crt_1_1Http.html#afba23b4ec95a8d1b95d18b2ffe5d82e5ab354a53a47e18f05f6cc27c7259e0791">HttpVersion::Http2</a> = AWS_HTTP_VERSION_2
 }</td></tr>
<tr class="separator:afba23b4ec95a8d1b95d18b2ffe5d82e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="a06495cd28f64029ef3dbd3b831d7b932"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06495cd28f64029ef3dbd3b831d7b932">&#9670;&nbsp;</a></span>HttpHeader</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef aws_http_header <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#a06495cd28f64029ef3dbd3b831d7b932">Aws::Crt::Http::HttpHeader</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="abf17b6f7768fa03af126b8c812ef9bd1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf17b6f7768fa03af126b8c812ef9bd1">&#9670;&nbsp;</a></span>OnClientConnectionAvailable</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#abf17b6f7768fa03af126b8c812ef9bd1">Aws::Crt::Http::OnClientConnectionAvailable</a> = typedef std::function&lt;void(std::shared_ptr&lt;<a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientConnection.html">HttpClientConnection</a>&gt;, int errorCode)&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Invoked when a connection from the pool is available. If a connection was successfully obtained the connection shared_ptr can be seated into your own copy of connection. If it failed, errorCode will be non-zero. </p>

</div>
</div>
<a id="abf7cbfe9deb17e6abd259b1db3850c6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf7cbfe9deb17e6abd259b1db3850c6d">&#9670;&nbsp;</a></span>OnConnectionSetup</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#abf7cbfe9deb17e6abd259b1db3850c6d">Aws::Crt::Http::OnConnectionSetup</a> = typedef std::function&lt;void(const std::shared_ptr&lt;<a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientConnection.html">HttpClientConnection</a>&gt; &amp;connection, int errorCode)&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Invoked upon connection setup, whether it was successful or not. If the connection was successfully established, <code>connection</code> will be valid and errorCode will be AWS_ERROR_SUCCESS. Upon an error, <code>connection</code> will not be valid, and errorCode will contain the cause of the connection failure. </p>

</div>
</div>
<a id="a38b7bf171ad1910c2d8d95eef6f8ee13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38b7bf171ad1910c2d8d95eef6f8ee13">&#9670;&nbsp;</a></span>OnConnectionShutdown</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#a38b7bf171ad1910c2d8d95eef6f8ee13">Aws::Crt::Http::OnConnectionShutdown</a> = typedef std::function&lt;void(<a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpClientConnection.html">HttpClientConnection</a> &amp;connection, int errorCode)&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Invoked upon connection shutdown. <code>connection</code> will always be a valid pointer. <code>errorCode</code> will specify shutdown reason. A graceful connection close will set <code>errorCode</code> to AWS_ERROR_SUCCESS. Internally, the connection pointer will be unreferenced immediately after this call; if you took a reference to it in <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#abf7cbfe9deb17e6abd259b1db3850c6d">OnConnectionSetup()</a>, you'll need to release your reference before the underlying memory is released. If you never took a reference to it, the resources for the connection will be immediately released after completion of this callback. </p>

</div>
</div>
<a id="abc77003769a91c513b54ce1fa42d1231"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc77003769a91c513b54ce1fa42d1231">&#9670;&nbsp;</a></span>OnIncomingBody</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#abc77003769a91c513b54ce1fa42d1231">Aws::Crt::Http::OnIncomingBody</a> = typedef std::function&lt;void(<a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a> &amp;stream, const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;data)&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Invoked as chunks of the body are read. <code>data</code> contains the data read from the wire. If chunked encoding was used, it will already be decoded (TBD).</p>
<p>On <a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a>, this function can be empty if you are not expecting a body (e.g. a HEAD request). </p>

</div>
</div>
<a id="ab2a1bca19494ff57966accc70a833834"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2a1bca19494ff57966accc70a833834">&#9670;&nbsp;</a></span>OnIncomingHeaders</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#ab2a1bca19494ff57966accc70a833834">Aws::Crt::Http::OnIncomingHeaders</a> = typedef std::function&lt;void( <a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a> &amp;stream, enum aws_http_header_block headerBlock, const <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#a06495cd28f64029ef3dbd3b831d7b932">HttpHeader</a> *headersArray, std::size_t headersCount)&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Called as headers are received from the peer. <code>headersArray</code> will contain the header value read from the wire. The number of entries in <code>headersArray</code> are specified in <code>headersCount</code>.</p>
<p>Keep in mind that this function will likely be called multiple times until all headers are received.</p>
<p>On <a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a>, this function must be set. </p>

</div>
</div>
<a id="a8d646e4c6ffcdfa23c42e95403ac388d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d646e4c6ffcdfa23c42e95403ac388d">&#9670;&nbsp;</a></span>OnIncomingHeadersBlockDone</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#a8d646e4c6ffcdfa23c42e95403ac388d">Aws::Crt::Http::OnIncomingHeadersBlockDone</a> = typedef std::function&lt;void(<a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a> &amp;stream, enum aws_http_header_block block)&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Invoked when the headers portion of the message has been completely received. <code>hasBody</code> will indicate if there is an incoming body.</p>
<p>On <a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a>, this function can be empty. </p>

</div>
</div>
<a id="a486282cdd28a7f05e50e1534797c4a3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a486282cdd28a7f05e50e1534797c4a3f">&#9670;&nbsp;</a></span>OnStreamComplete</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#a486282cdd28a7f05e50e1534797c4a3f">Aws::Crt::Http::OnStreamComplete</a> = typedef std::function&lt;void(<a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a> &amp;stream, int errorCode)&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Invoked upon completion of the stream. This means the request has been sent and a completed response has been received (in client mode), or the request has been received and the response has been completed.</p>
<p>In H2, this will mean RST_STREAM state has been reached for the stream.</p>
<p>On <a class="el" href="classAws_1_1Crt_1_1Http_1_1HttpStream.html">HttpStream</a>, this function must be set. </p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="af3cef7161b636a6450f5cb4a50021979"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3cef7161b636a6450f5cb4a50021979">&#9670;&nbsp;</a></span>AwsHttpProxyAuthenticationType</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#af3cef7161b636a6450f5cb4a50021979">Aws::Crt::Http::AwsHttpProxyAuthenticationType</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Mirror of the aws_http_proxy_authentication_type C enum - designates what kind of authentication, if any, to use when connecting to a proxy server </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="af3cef7161b636a6450f5cb4a50021979a6adf97f83acf6453d4a6a4b1070f3754"></a>None&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="af3cef7161b636a6450f5cb4a50021979a972e73b7a882d0802a4e3a16946a2f94"></a>Basic&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<a id="afba23b4ec95a8d1b95d18b2ffe5d82e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afba23b4ec95a8d1b95d18b2ffe5d82e5">&#9670;&nbsp;</a></span>HttpVersion</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="namespaceAws_1_1Crt_1_1Http.html#afba23b4ec95a8d1b95d18b2ffe5d82e5">Aws::Crt::Http::HttpVersion</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="afba23b4ec95a8d1b95d18b2ffe5d82e5a88183b946cc5f0e8c96b2e66e1c74a7e"></a>Unknown&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="afba23b4ec95a8d1b95d18b2ffe5d82e5aa820a7cca3410e94af1e51058023680a"></a>Http1_0&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="afba23b4ec95a8d1b95d18b2ffe5d82e5a2c494112f4c9bef921aacd3650fd34ea"></a>Http1_1&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="afba23b4ec95a8d1b95d18b2ffe5d82e5ab354a53a47e18f05f6cc27c7259e0791"></a>Http2&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
